package com.anli.exception;

import com.anli.pojo.Result;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class testException {
    public Result ex(Exception e) {
        e.printStackTrace();
        return Result.error("操作失败，请联系管理员");
    }
}
